/**
 * Created by Rossy1 on 2018/4/28.
 */
document.documentElement.style.fontSize = document.documentElement.clientWidth / 3.75 + "px"; //兼容处理

var bef = window.location.href.split("?")[1];
if (bef == "TAfans") {
    $("title").html("TA的粉丝");
} else if (bef == "TAfocus") {
    $("title").html("TA的关注");
} else if (bef == "Myfans") {
    $("title").html("我的粉丝");
} else if (bef == "Myfocus") {
    $("title").html("我的关注");
}

//关注/取消关注
$(".btn").on("click", function () {
    var curTxt = $(this)[0].innerText;
    if (curTxt == "取消关注") {
        $(this).css("background", "#6e93c9");
        $(this).text("关注");
    } else if (curTxt == "关注") {
        $(this).text("取消关注");
        $(this).css("background", "#bbbbbb");
    }
})

